<template>
  <div class="bos">
    <!-- 头部区域 -->
    <Head title="驻会机构" style="border-bottom: none" id="backstyle"> </Head>
    <Banner id="9" class="bannerId"></Banner>
    <div class="notice title-center l-h tac">
      {{ this.$route.query.i }}.&nbsp;{{ list.title }}
    </div>
    <!-- 版心区域 -->
    <div class="war">
      <div class="area-center bold-size">
        <div class="center richText" v-html="list.context"></div>
      </div>
    </div>
  </div>
</template>

<script>
import Head from "@/components/public/HeadPage.vue";
import Banner from "@/components/Home/BannerView.vue";
import { ResidenfindById } from "@/api/index";
export default {
  data() {
    return {
      list: {
        title: "",
        context: "",
      },
    };
  },
  components: {
    Head,
    Banner,
  },
  mounted() {
    ResidenfindById(this.$route.query.id).then((res) => {
      if (res.data.code == 200) {
        this.list.context = this.dataHTML(res.data.data.context);
        this.list.title = res.data.data.title;
      }
    });
  },
};
</script>

<style scoped>
.bos {
  width: 100%;
  min-height: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notice {
  width: 100%;

}
/* 版心区域 */
.center {
  margin-top: 0.05rem;
  /* 文字换行 */
  word-wrap: break-word;
}
</style>